window.onload = function(){
    var oDiv = document.getElementById('mid_6_moving');
    var oUl = oDiv.getElementsByTagName('ul')[0];
    var aLi=oUl.getElementsByTagName('li');

    oUl.innerHTML=oUl.innerHTML+oUl.innerHTML;

    oUl.style.width=aLi[0].offsetWidth*aLi.length+'px';
    function move(){
			if (oUl.offsetLeft<-oUl.offsetWidth/2)
			 {
			 	oUl.style.left='0';
			 };
				oUl.style.left=oUl.offsetLeft-2+'px';

			};

	var timer=setInterval (move,30);

	oDiv.onmouseover=function()
	{
  			clearInterval(timer);
	};
	oDiv.onmouseout=function()
	{
		timer=setInterval (move,30);
	}		
		};